<?php


namespace App\Models\Chat;
use App\Models\CarModels\CarArea;
use App\Models\SystemManagement\Department;
use App\Models\SystemManagement\DepartmentEmployee;
use App\Models\SystemManagement\Employee;
use App\Models\SystemManagement\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Facade;
use DB;
class ChatEmployDepartment extends Model
{
    protected $table = 'chat_employ_department';
    protected $fillable = ['chat_group_id','employ_department_id'];

    function department()
    {
        return $this->belongsTo(Department::class,'employ_department_id')->with('users');
    }
}

